<!DOCTYPE  html>
<html>
{include file="head.html"}
<body>
	<div class="tabs-border">
		<a href="{$appadmin}?m=navbar" class="active item">导航管理</a>
		<a href="{$appadmin}?m=navbar&a=add" class="item">导航添加</a>
	</div>
 

<div class="main-body">
	<div class="tabs-border" > 
	{foreach item=g key=k from=$group_list}
	<a href="{$appadmin}?m=navbar&group_id={$k}" class="item {if $group_id eq $k}active{/if}">{$g}</a>
	{/foreach}
	
	</div>
<form action="{$appadmin}?m=navbar&a=order" method="post">
<table class="tbs">
	<thead>
  <tr>
    <td width="5%" align="center">ID</td>
    <td width="10%" align="center">名称</td>
    <td width="5%">状态</td>
    <td width="4%" align="center">m</td>
    <td width="4%" align="center">a</td>
    <td width="10%" height="30" align="center">位置</td>
    <td width="7%" align="center">目标</td>
    
    <td width="7%" height="30" align="center">排序</td>
    <td width="16%" height="30" align="center">操作</td>
  </tr>
	</thead>
  {foreach item=t from=$navlist}
  <tr>
    <td align="center">{$t.id}</td>
  <td align="left"><a href="{$t.link_url}" target="_blank">{$t.title}</a></td>
  <td>{if $t.status eq 1}
   <img src='/static/admin/img/yes.gif' class="ajax_no" url='{$appadmin}?m=navbar&a=status&id={$t.id}&status=0' rurl='{$appadmin}?m=navbar&a=status&id={$t.id}&status=1'>
    {else}
    <img src='/static/admin/img/no.gif' class="ajax_yes" url='{$appadmin}?m=navbar&a=status&id={$t.id}&status=1' rurl='{$appadmin}?m=navbar&a=status&id={$t.id}&status=0'>
    {/if}</td>
  <td align="center">{$t.m}</td>
  <td align="center">{$t.a}</td>
    <td height="25" align="center">{$group_list.$t.group_id}</td>
    <td align="center">{$t.target}</td>
    <input type="hidden" name="id[]" value="{$t.id}" />
    <td height="25" align="center"><input name="orderindex[]" type="text" value="{$t.orderindex}" class="input-small" /></td>
    <td height="25" align="center">
    <a href="{$appadmin}?m=navbar&a=add&pid={$t.id}" >添加</a>
    <a href="{$appadmin}?m=navbar&a=add&id={$t.id}">编辑</a> 
    <a href="javascript:;"  url="{$appadmin}?m=navbar&a=delete&id={$t.id}" class="js-delete" >删除</a></td>
  </tr>
  {if $t.child}
  {foreach item=c from=$t.child}
    <tr>
      <td align="center">{$c.id}</td>
  <td align="left">|__<a href="{$c.link_url}" target="_blank">{$c.title}</a> </td>
  <td>{if $c.status eq 1}
   <img src='/static/admin/img/yes.gif' class="ajax_no" url='{$appadmin}?m=navbar&a=status&id={$c.id}&status=0' rurl='{$appadmin}?m=navbar&a=status&id={$c.id}&status=1'>
    {else}
    <img src='/static/admin/img/no.gif' class="ajax_yes" url='{$appadmin}?m=navbar&a=status&id={$c.id}&status=1' rurl='{$appadmin}?m=navbar&a=status&id={$c.id}&status=0'>
    {/if}</td>
  <td align="center">{$c.m}</td>
  <td align="center">{$c.a}</td>
    <td height="25" align="center">{$group_list.$c.group_id}</td>
    <td align="center">{if $c.target eq '_blank'}{$lang._blank}{else}{$lang._self}{/if}</td>
    <input type="hidden" name="id[]" value="{$c.id}" />
    
    <td height="25" align="center"><input name="orderindex[]" type="text" value="{$c.orderindex}"  class="input-small" /></td>
    <td height="25" align="center">
    <a href="{$appadmin}?m=navbar&a=add&id={$c.id}">编辑</a> 
    <a href="javascript:;"  url="{$appadmin}?m=navbar&a=delete&id={$c.id}" class="js-delete" >删除</a>
    </td>
  </tr>
  {/foreach}
  {/if}
	{/foreach}
  
 
</table>
<div class="pd-10 clearfix">
	<div class="btn js-submit fr" >更改排序</div>
</div>
 

</form>
</div>

{include file='footer.html'}
</body>
</html>